package gnss

// YOBS频点序号
/*
千寻客服：2021-09-26 09:45:27
b1c 31 b2a 23
*/
var (
	// 尽量和RTCM对上, 也可以自定义
	YOBS_BDS_SIGN_MAP = []string{
		"",
		"2I", "2Q", "2X", // 2, 3,4       (B1)
		"1D", "1P", "1X", // 5, 6, 7      (B1C)  RINEX文档中, 但是没有具体编号
		"6I", "6Q", "6X", // 8, 9, 10     (B3)
		"", "", "", // 11-13
		"7I", "7Q", "7X", // 14, 15, 16   (B2)
		"5D", "5P", "5X", // 17, 18, 19   (B2a)    // 非RTCM 标准
		"7D", "7P", "7Z", // 20, 21, 22   (B2b)    // 非标
		"5D", "5P", "5X", // 23, 24, 25   (B2a)    // 非标 千寻的23 为B2a
		"8D", "8P", "8X", // 26, 27, 28   (B2a + B2b)   // 非标
		//"1A", "1B", "1C", // 26, 27, 28   (B1C)   // RINEX中没有
		"",
		"1D", "1P", "1X", // 30, 31, 32   (B1C)   // RINEX中没有
	}

	YOBS_BDS_SIGN_B1_2I byte = 2
	YOBS_BDS_SIGN_B1_2Q byte = 3
	YOBS_BDS_SIGN_B1_2X byte = 4

	YOBS_BDS_SIGN_B3_6I byte = 8
	YOBS_BDS_SIGN_B3_6Q byte = 9
	YOBS_BDS_SIGN_B3_6X byte = 10

	YOBS_BDS_SIGN_B2_7I byte = 14
	YOBS_BDS_SIGN_B2_7Q byte = 15
	YOBS_BDS_SIGN_B2_7X byte = 16

	//YOBS_BDS_SIGN_B2A_5D byte = 17
	//YOBS_BDS_SIGN_B2A_5P byte = 18
	//YOBS_BDS_SIGN_B2A_5X byte = 19

	YOBS_BDS_SIGN_B2A_5D byte = 23
	YOBS_BDS_SIGN_B2A_5P byte = 24
	YOBS_BDS_SIGN_B2A_5X byte = 25

	//YOBS_BDS_SIGN_B1C_1C byte = 28 // 不用

	YOBS_BDS_SIGN_B2B_7D byte = 20
	YOBS_BDS_SIGN_B2B_7P byte = 21
	YOBS_BDS_SIGN_B2B_7Z byte = 22

	YOBS_BDS_SIGN_B2AB_8D byte = 26
	YOBS_BDS_SIGN_B2AB_8P byte = 27
	YOBS_BDS_SIGN_B2AB_8X byte = 28

	YOBS_BDS_SIGN_B1C_1D byte = 30
	YOBS_BDS_SIGN_B1C_1P byte = 31
	YOBS_BDS_SIGN_B1C_1X byte = 32

	YOBS_GPS_SIGN_MAP = []string{
		"",               // 1
		"1C", "1P", "1W", // 2, 3, 4    L1
		"", "", "", //
		"2C", "2P", "2W", // 8, 9, 10   L2
		"", "", "", "", // 11-14
		"2S", "2L", "2X", // 15-17     L2
		"", "", "", "", // 18-21
		"5I", "5Q", "5X", // 22-24     L5
		"", "", "", "", "", // 25 -29
		"1S", "1L", "1X", //30-32    // L1
	}
	YOBS_GPS_SIGN_L1_1C byte = 2
	YOBS_GPS_SIGN_L1_1P byte = 3
	YOBS_GPS_SIGN_L1_1W byte = 4

	YOBS_GPS_SIGN_L2_2C byte = 8
	YOBS_GPS_SIGN_L2_2P byte = 9
	YOBS_GPS_SIGN_L2_2W byte = 10

	YOBS_GPS_SIGN_L2_2S byte = 15
	YOBS_GPS_SIGN_L2_2L byte = 16
	YOBS_GPS_SIGN_L2_2X byte = 17

	YOBS_GPS_SIGN_L5_5I byte = 22
	YOBS_GPS_SIGN_L5_5Q byte = 23
	YOBS_GPS_SIGN_L5_5X byte = 24

	YOBS_GPS_SIGN_L1_1S byte = 30
	YOBS_GPS_SIGN_L1_1L byte = 31
	YOBS_GPS_SIGN_L1_1X byte = 32

	YOBS_GAL_SIGN_MAP = []string{"",
		"1C", "1A", "1B", // 2-4    E1
		"1X", "1Z", "", // 5,6,7        E1
		"6C", "6A", "6B", // 8,9,10    E6
		"6X", "6Z", "", // 11,12,13
		"7I", "7Q", "7X", // 14-16     // E5B
		"",               // 17
		"8I", "8Q", "8X", // 18-20    // E5(A+B)
		"",               // 21
		"5I", "5Q", "5X", // 22-24    // E5A
		"",                         // 25
		"", "", "", "", "", "", "", //26-32
	}
	YOBS_GAL_SIGN_E1_1C  byte = 2
	YOBS_GAL_SIGN_E1_1X  byte = 5
	YOBS_GAL_SIGN_E5A_5I byte = 22
	YOBS_GAL_SIGN_E5A_5Q byte = 23 // zjy
	YOBS_GAL_SIGN_E5A_5X byte = 24
	YOBS_GAL_SIGN_E5B_7I byte = 14
	YOBS_GAL_SIGN_E5B_7Q byte = 15 // zjy
	YOBS_GAL_SIGN_E5B_7X byte = 16

	YOBS_GAL_SIGN_E5AB_8X byte = 20 // zjy

	YOBS_GAL_SIGN_E6_6C byte = 8

	// GLO_SIGN_MAP[iSign -1]  :iSign(1-32) Galileo
	// Table 3.5-96 GLONASS Signal ID mapping
	YOBS_GLO_SIGN_MAP = []string{
		"",             // 1
		"1C", "1P", "", // 2,3,4
		"", "", "", // 5,6,7
		"2C", "2P", "", // 8,9,10
		"", "", "", // 11,12,13
		"", "", "", "", "", "", "", "", "", "", "", "", // 14-25
		"", "", "", "", "", "", "", //26-32
	}

	YOBS_GLO_SIGN_G1_1C byte = 2
	YOBS_GLO_SIGN_G1_1P byte = 3

	YOBS_GLO_SIGN_G2_2C byte = 8
	YOBS_GLO_SIGN_G2_2P byte = 9

	// QZSS Signal ID Mapping
	YOBS_QZS_SIGN_MAP = []string{"",
		"1C", "", "", // 2, 3, 4    L1
		"", "", "", "", // 5,6,7, 8
		"6S", "6L", "6X", // 9, 10 11    LEX L6 1278.75
		"", "", "", // 12-14
		"2S", "2L", "2X", // 15-17     L2
		"", "", "", "", // 18-21
		"5I", "5Q", "5X", // 22-24     L5
		"", "", "", "", "", // 25 -29
		"1S", "1L", "1X", //30-32    // L1
	}
	YOBS_QZX_SIGN_1C byte = 2
	YOBS_QZX_SIGN_2L byte = 16
	YOBS_QZX_SIGN_2X byte = 17
	YOBS_QZX_SIGN_5I byte = 22
	YOBS_QZX_SIGN_5Q byte = 23
	YOBS_QZX_SIGN_1S byte = 30
)
